package o;

import android.os.RemoteException;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import o.fhe.b;

public class fhg implements fhb {
    private final int ˎ = 1;

    public /* synthetic */ Object ˋ(ffb o_ffb, fgn o_fgn, fia o_fia) {
        return ˎ(o_ffb, o_fgn, o_fia);
    }

    public fjo ˎ(ffb o_ffb, fgn<b> o_fgn_o_fhe_b, final fia o_fia) {
        final fjx o_fjx = new fjx();
        o_fgn_o_fhe_b.ˎ(new fgl<fgp<b>>(this) {
            final /* synthetic */ fhg ˋ;

            public void ˊ(fgp<b> o_fgp_o_fhe_b) {
                b bVar = (b) o_fgp_o_fhe_b.ˏ();
                if (bVar.statusCode == 1) {
                    o_fjx.ॱ((RemoteException) bVar.ret.cast(new fia<RemoteException>(this) {
                        final /* synthetic */ AnonymousClass1 ˎ;

                        {
                            this.ˎ = r1;
                        }
                    }.ॱ()));
                    return;
                }
                ParameterizedType parameterizedType = (ParameterizedType) o_fia.ॱ();
                if (parameterizedType != null) {
                    Type type = parameterizedType.getActualTypeArguments()[0];
                    if (type != null) {
                        o_fjx.ॱ(bVar.ret.cast(type));
                        return;
                    }
                }
                o_fjx.ॱ(new IllegalArgumentException("Task type error"));
            }
        });
        return o_fjx.ॱ();
    }

    public fey<? extends ffl> ॱ(Object obj, fgv o_fgv) {
        ((fjo) obj).ˏ(new 3(this, o_fgv));
        return null;
    }
}
